import request from '@/utils/request'

export function getListAPI(data) {
  return request({
    url: 'api/deliveryMission/manualOutBoundShelf',
    method: 'get',
    data
  })
}

export function getPointAPI(data) {
  return request({
    url: `api/deliveryMission/getEndPoint/${data}`,
    method: 'get',
    data
  })
}

export function createMissionAPI(data) {
  return request({
    url: 'api/deliveryMission/createDeliveryMission',
    method: 'post',
    data
  })
}

export function forceEndAPI(data) {
  return request({
    url: `api/deliveryOrder/endDeliveryOrder/${data}`,
    method: 'get',
    data
  })
}

export function getFormToAPI(data) {
  return request({
    url: `api/deliveryMission/getPoint/${data.pointDirection}/${data.pointType}`,
    method: 'get',
    data
  })
}

export function checkStatusAPI(data) {
  return request({
    url: `/api/deliveryMission/isPointHasGoods/${data}`,
    method: 'get',
    data
  })
}

export function newCreateMissionAPI(data) {
  return request({
    url: '/api/deliveryMission/manualCreateDeliveryMission/',
    method: 'post',
    data
  })
}

